Optimal. Leaf size=88 \[ \sqrt{5 x^2-3 x-2}+\sqrt{2} \tan ^{-1}\left (\frac{3 x+4}{2 \sqrt{2} \sqrt{5 x^2-3 x-2}}\right )+\frac{3 \tanh ^{-1}\left (\frac{3-10 x}{2 \sqrt{5} \sqrt{5 x^2-3 x-2}}\right )}{2 \sqrt{5}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0487672, antiderivative size = 88, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {734, 843, 621, 206, 724, 204} \[ \sqrt{5 x^2-3 x-2}+\sqrt{2} \tan ^{-1}\left (\frac{3 x+4}{2 \sqrt{2} \sqrt{5 x^2-3 x-2}}\right )+\frac{3 \tanh ^{-1}\left (\frac{3-10 x}{2 \sqrt{5} \sqrt{5 x^2-3 x-2}}\right )}{2 \sqrt{5}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 734
Rule 843
Rule 621
Rule 206
Rule 724
Rule 204
Rubi steps
\begin{align*} \int \frac{\sqrt{-2-3 x+5 x^2}}{x} \, dx &=\sqrt{-2-3 x+5 x^2}-\frac{1}{2} \int \frac{4+3 x}{x \sqrt{-2-3 x+5 x^2}} \, dx\\ &=\sqrt{-2-3 x+5 x^2}-\frac{3}{2} \int \frac{1}{\sqrt{-2-3 x+5 x^2}} \, dx-2 \int \frac{1}{x \sqrt{-2-3 x+5 x^2}} \, dx\\ &=\sqrt{-2-3 x+5 x^2}-3 \operatorname{Subst}\left (\int \frac{1}{20-x^2} \, dx,x,\frac{-3+10 x}{\sqrt{-2-3 x+5 x^2}}\right )+4 \operatorname{Subst}\left (\int \frac{1}{-8-x^2} \, dx,x,\frac{-4-3 x}{\sqrt{-2-3 x+5 x^2}}\right )\\ &=\sqrt{-2-3 x+5 x^2}+\sqrt{2} \tan ^{-1}\left (\frac{4+3 x}{2 \sqrt{2} \sqrt{-2-3 x+5 x^2}}\right )+\frac{3 \tanh ^{-1}\left (\frac{3-10 x}{2 \sqrt{5} \sqrt{-2-3 x+5 x^2}}\right )}{2 \sqrt{5}}\\ \end{align*}
Mathematica [A] time = 0.0359788, size = 84, normalized size = 0.95 \[ \sqrt{5 x^2-3 x-2}-\sqrt{2} \tan ^{-1}\left (\frac{-3 x-4}{2 \sqrt{10 x^2-6 x-4}}\right )-\frac{3 \tanh ^{-1}\left (\frac{10 x-3}{2 \sqrt{5} \sqrt{5 x^2-3 x-2}}\right )}{2 \sqrt{5}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.042, size = 71, normalized size = 0.8 \begin{align*} \sqrt{5\,{x}^{2}-3\,x-2}-{\frac{3\,\sqrt{5}}{10}\ln \left ({\frac{\sqrt{5}}{5} \left ( -{\frac{3}{2}}+5\,x \right ) }+\sqrt{5\,{x}^{2}-3\,x-2} \right ) }-\sqrt{2}\arctan \left ({\frac{ \left ( -3\,x-4 \right ) \sqrt{2}}{4}{\frac{1}{\sqrt{5\,{x}^{2}-3\,x-2}}}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.51522, size = 81, normalized size = 0.92 \begin{align*} \sqrt{2} \arcsin \left (\frac{3 \, x}{7 \,{\left | x \right |}} + \frac{4}{7 \,{\left | x \right |}}\right ) - \frac{3}{10} \, \sqrt{5} \log \left (2 \, \sqrt{5} \sqrt{5 \, x^{2} - 3 \, x - 2} + 10 \, x - 3\right ) + \sqrt{5 \, x^{2} - 3 \, x - 2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.96689, size = 232, normalized size = 2.64 \begin{align*} \sqrt{2} \arctan \left (\frac{\sqrt{2}{\left (3 \, x + 4\right )}}{4 \, \sqrt{5 \, x^{2} - 3 \, x - 2}}\right ) + \frac{3}{20} \, \sqrt{5} \log \left (-4 \, \sqrt{5} \sqrt{5 \, x^{2} - 3 \, x - 2}{\left (10 \, x - 3\right )} + 200 \, x^{2} - 120 \, x - 31\right ) + \sqrt{5 \, x^{2} - 3 \, x - 2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{\left (x - 1\right ) \left (5 x + 2\right )}}{x}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.10228, size = 104, normalized size = 1.18 \begin{align*} -2 \, \sqrt{2} \arctan \left (-\frac{1}{2} \, \sqrt{2}{\left (\sqrt{5} x - \sqrt{5 \, x^{2} - 3 \, x - 2}\right )}\right ) + \frac{3}{10} \, \sqrt{5} \log \left ({\left | -10 \, \sqrt{5} x + 3 \, \sqrt{5} + 10 \, \sqrt{5 \, x^{2} - 3 \, x - 2} \right |}\right ) + \sqrt{5 \, x^{2} - 3 \, x - 2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]